{erl_opts, [
    warn_bif_clash,
    warn_deprecated_function,
    warn_export_all,
    warn_export_vars,
    warn_exported_vars,
    warn_format,
    warn_obsolete_guard,
    warn_shadow_vars,
    %%warn_untyped_record,
    warn_unused_function,
    warn_unused_record,
    warn_unused_vars,
    debug_info,
    {parse_transform, lager_transform}
]}.

{deps, [
    {graphql,
        {git, "https://github.com/shopgun/graphql-erlang.git", {branch, "master"}}},
    {cowboy, {git, "https://github.com/ninenines/cowboy.git", {tag, "2.2.0"}}},
    {lager, {git, "https://github.com/erlang-lager/lager.git", {tag, "3.4.2"}}},
    {jsx, {git, "https://github.com/talentdeficit/jsx.git", {branch, "master"}}},
    {recon, {git, "https://github.com/ferd/recon.git", {branch, "master"}}},
    {iso8601, {git, "https://github.com/erlsci/iso8601.git", {branch, "master"}}}
]}.


{relx, [
  {release, {sw, "1.0.0"}, [
    sw_core,
    sw_web,
    recon
  ]},

  {dev_mode, false},
  {sys_config, "./config/sys.config"},
  {vm_args, "./config/vm.args"},

  {overlay, [
        {mkdir, "db"},
	    {mkdir, "log"},
	    {mkdir, "log/sasl"},

        {copy, "{{root_dir}}/db/FALLBACK.BUP",
               "{{output_dir}}/db/FALLBACK.BUP"}
    ]},   
  {extended_start_script, true}]}.
            
